<#assign base=(rc.getContextPath())!''>
<html>
<head>
	<title>Emp List</title>
	<script language="javascript" src="${base}/res/js/common.js"></script>
	<script language="javascript" src="${base}/res/js/jquery-1.7.1.js"></script>
</head>

<body>
	<input type="button" value="js" onclick="justalert();"/>
	<br/><br/><br/>
	<form action="${base}/emp/page/1" method="post">
	<table style="width:60%;" align="center" border="1">
		<tr>
			<th colspan="4">查询条件</th>
		</tr>
		<tr>
			<td align="right"><b>ename</b></td>
			<td><input type="text" name="ename"/></td>
			<td align="right"><b>dname</b></td>
			<td><input type="text" name="dname"/></td>
		</tr>
		<tr>
			<td></td>
			<td colspan="3"><input type="submit" value="查询"/></td>
		</tr>
	</table>
	<form>
	<br/><br/><br/>
	<table style="width:60%;" align="center" border="1">
		<tr>
			<th width="20%">序号</th>
			<th width="20%">empno</th>
			<th width="20%">ename</th>
			<th width="40%">操作</th>
		</tr>
	  	<#list pagingInfo.list as item>
	  		<tr align="center">
	  			<td>${item_index+1}</td>
		  		<td>${item.EMPNO}</td>
		  		<td>${item.ENAME}</td>
		  		<td>
		  			<a href="${base}/emp/${item.EMPNO}/edit.html">修改</a> | 
		  			<a href="${base}/emp/${item.EMPNO}/put.html">PUT</a> |
		  			<a href="javascript:void(0)" onclick="deleteOne('${item.EMPNO}')">删除</a>
		  		</td>
		  	</tr>
	  	</#list>
	  	<tr>
	  		<td colspan="4" align="center">
	  			共${pagingInfo.rowCount}条数据&nbsp;&nbsp;&nbsp;&nbsp;
	  			共${pagingInfo.pageCount}页&nbsp;&nbsp;&nbsp;&nbsp;
	  			当前第${pagingInfo.pageNum}页&nbsp;&nbsp;&nbsp;&nbsp;
	  			<#list 1..pagingInfo.pageCount as i>
	  				<#if i == pagingInfo.pageNum>
	  					${i}
	  				<#else>
	  					<a href="${base}/emp/page/${i}">${i}</a>
	  				</#if>
	  			</#list>
	  		</td>
	  	</tr>
	</table>
	
</body>

</html>